import javax.swing.*;

public class TestBooleanOperators {
    public static void main(String[] args) {
        String s = JOptionPane.showInputDialog(null, 
                "Ievadi kaut kādu skaitli:", "Boolean operatori", 
                JOptionPane.QUESTION_MESSAGE);
        int number = Integer.parseInt(s);
        
        JOptionPane.showMessageDialog(null, "Vai skaitlis "
                + number + "\n\tdalās ar 2 un 3? "
                + (number % 2 == 0 && number % 3 == 0)
                + "\n\tdalās ar 2 vai 3? "
                + (number % 2 == 0 || number % 3 == 0)
                + "\n\tdalās ar 2 vai 3, bet ne abi? "
                + (number % 2 == 0 ^ number % 3 ==0));
    }
}